﻿namespace Yom.WebService.Setup
{
    using System.Web;
    using Yom.Common;

    public class SetupConnect
    {
        public void OutWrite()
        {
            HttpResponse Response = HttpContext.Current.Response;
            JsonModel Js = new JsonModel();
            Js.Add("Title", "<p>填写数据库连接信息</p>");
            Js.Add("Desc", "<div id=\"ErrShow\" style=\"color:red;\"></div>");
            Js.Add("Info", "<div style=\"padding-left: 20px; padding-top: 20px;\"><div style=\"text-align: left\">连接地址:&nbsp;<input type=\"text\" id=\"dbhost\" value=\"(local)\" class=\"txt\" /></div><div style=\"text-align: left\">连接用户:&nbsp;<input type=\"text\" id=\"dbuser\" value=\"sa\" class=\"txt\" /></div><div style=\"text-align: left\">登录密码:&nbsp;<input type=\"password\" id=\"dbpass\" value=\"\" class=\"txt\" /></div></div>");
            Js.Add("Height", "30px");
            Js.Add("Button", "<input type=\"button\" id=\"Previous\" value=\"&lt; 上一步\" />&nbsp;<input type=\"button\" id=\"Next\" value=\"下一步 &gt;\" />");
            Response.Write(new Json(Js));
        }
    }
}